package com.SunSoft.PhoneRemoteControl;

import android.util.Log;
import com.baidu.location.a;
import com.baidu.location.b;
import com.baidu.location.c;

public final class j
  implements c
{
  public final void a(a parama)
  {
    if (parama == null)
      return;
    Object localObject = new StringBuffer(256);
    ((StringBuffer)localObject).append("时间: ");
    ((StringBuffer)localObject).append(parama.a());
    ((StringBuffer)localObject).append("\n纬度: ");
    ((StringBuffer)localObject).append(parama.b());
    ((StringBuffer)localObject).append("\n经度: ");
    ((StringBuffer)localObject).append(parama.c());
    ((StringBuffer)localObject).append("\n精度: ");
    ((StringBuffer)localObject).append(parama.e());
    Location.a(this.a, String.valueOf(parama.b()));
    Location.b(this.a, String.valueOf(parama.c()));
    if (parama.f() == 61)
    {
      ((StringBuffer)localObject).append("\n速度: ");
      ((StringBuffer)localObject).append(parama.d());
      ((StringBuffer)localObject).append("\n卫星 : ");
      ((StringBuffer)localObject).append(parama.g());
      Location.c(this.a, "未知");
    }
    while (true)
    {
      if (parama.h());
      localObject = parama.b.a;
      parama = (a)localObject;
      if (localObject == null)
        parama = "";
      parama = parama.replace("省", "").replace("市", "");
      Location.a(this.a).a("user_address", Location.b(this.a));
      Location.a(this.a).a("user_province", parama);
      MyApplication.a().j = true;
      return;
      if (parama.f() != 161)
        continue;
      ((StringBuffer)localObject).append("\n地址: ");
      ((StringBuffer)localObject).append(parama.b.g);
      Location.c(this.a, parama.b.a + parama.b.b + parama.b.c);
    }
  }

  public final void b(a parama)
  {
    if (parama == null)
      return;
    StringBuffer localStringBuffer = new StringBuffer(256);
    localStringBuffer.append("Poi time : ");
    localStringBuffer.append(parama.a());
    localStringBuffer.append("\nerror code : ");
    localStringBuffer.append(parama.f());
    localStringBuffer.append("\nlatitude : ");
    localStringBuffer.append(parama.b());
    localStringBuffer.append("\nlontitude : ");
    localStringBuffer.append(parama.c());
    localStringBuffer.append("\nradius : ");
    localStringBuffer.append(parama.e());
    if (parama.f() == 161)
    {
      localStringBuffer.append("\naddr : ");
      localStringBuffer.append(parama.b.g);
    }
    while (true)
    {
      Log.i(Location.e, localStringBuffer.toString());
      return;
      localStringBuffer.append("noPoi information");
    }
  }
}